import {createBrowserRouter} from "react-router-dom";
import BaseLayout from "./layouts/BaseLayout";
import HomePage from "./pages/HomePage";
import SecondPage from "./pages/SecondPage";

const router = createBrowserRouter([
    {
      path: '/',
      element: <BaseLayout/>,
      children: [
        {
          index: true,
          element: <HomePage/>,
        },
        {
          index: true,
          element: <SecondPage/>,
        },
      ],
    },
  ],
  {
    future: {
      v7_fetcherPersist: true,
      v7_normalizeFormMethod: true,
      v7_partialHydration: true,
      v7_relativeSplatPath: true,
      v7_skipActionErrorRevalidation: true,
    }
  });

export default router;
